﻿@inherits System.Web.Mvc.WebViewPage
@using System.Data
@using ZoomLa.Model
@using ZoomLa.BLL
@using ZoomLa.SQLDAL
@{
    B_User buser = new B_User();
    M_UserInfo mu=new B_User().GetLogin();
}
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;" name="viewport" />
<meta name="renderer" content="webkit">
<link href="/dist/css/weui.min.css" rel="stylesheet" />
<link href="/dist/css/bootstrap.min.css" rel="stylesheet"/>
<!--[if lt IE 9]>
	<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
	<script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
<![endif]-->
<script type="text/javascript" src="/JS/jquery.min.js" ></script>
<script src="/dist/js/bootstrap.min.js"></script>
<link href="/dist/css/font-awesome.min.css" rel="stylesheet"/>
<script src="/JS/Controls/ZL_Dialog.js"></script>
<link href="/App_Themes/Guest.css" rel="stylesheet" />
<script src="/JS/mvcpage.js?v=@(ZoomLa.BLL.BLLCommon.Version_JS)"></script>
<script>function SetImg(url) { $("#BarImage_img").attr("src", url); }</script>
@RenderSection("head")
</head>
<body class="index_body">
    <header class="headerT navbar-fixed-top hidden-xs">
        <div class="container">
            <div class="row">
                <div class="padding10">
                    <div class="col-lg-7 col-md-7 col-sm-12 col-xs-12 padding5 header_left">
                        <ul class="list-unstyled">
                            <li><a href="/" target="_blank" class="btn btn-link"><span class="fa fa-home"></span>主页</a></li>
                            <li><a href="/Class_6/NodePage.asp" target="_blank" class="btn btn-link">我的</a></li>
                            <li><a href="/Class_1/Default.aspx" target="_blank" class="btn btn-link">邂逅</a></li>
                            <li><a href="/user/Message/Message" target="_blank" class="btn btn-link">消息</a></li>
                            <li><a href="/Search/SearchList" target="_blank" class="btn btn-link">搜索发现</a></li>
                            <li><a href="/Class_3/Default.aspx" class="btn btn-link">红娘</a></li>
			    <li><a href="/Class_4/Default.aspx" class="btn btn-link">线下俱乐部</a></li>
                    </div>
                    <div class="col-lg-5 col-md-5 hidden-sm hidden-xs padding5 header_index_search">
                        <div class="input-group pull-left" style="width: 260px;">
                            <input type="text" onkeydown="if(event.keyCode ==13){SearchStr();return false;}" id="souchkey" class="form-control" placeholder="请输入需要搜索的内容" />
                            <span class="input-group-btn">
                                <button id="sousuo" style="right: 0;" class="btn btn-default" onclick="SearchStr()" type="button"><span class="fa fa-search"></span></button>
                            </span>
                        </div>
                        <div class="pull-right" style="margin-top: 2px;">
                            @if (mu.IsNull)
                            {
                                <div class="no_longin" id="login_div">
                                    <a class="header_index_login_run headerTButton" href="/User/Login?returnUrl=/Index" style="text-decoration: none;">登录</a>
                                    <a class="header_index_login_reg headerTButton" href="/User/Register" style="text-decoration: none; margin-left: -8px;">注册</a>
                                    <a href='javascript:ShowHelp();'><span class="fa fa-question-circle btn btn-sm"></span></a>
                                </div>
                            }
                            else
                            {
                                <div class="has_login" id="userlog_div">
                                    <div class="dropdown">
                                        <a data-toggle="dropdown" href="javascript:;">
                                            <span id="uname_span">@mu.HoneyName</span>
                                            <span class="caret"></span>
                                        </a>
                                        <a href='javascript:ShowHelp();'><span class="fa fa-question-circle btn btn-sm"></span></a>
                                        <ul class="dropdown-menu" role="menu">
                                            <li><a href="/PostSearch?uid=@mu.UserID" title="我的贴子"  id="mypost_a">我的贴子</a></li>
                                            <li><a href="/PostSearch?islike=1">我的收藏</a></li>
                                            <li><a href="/User/Message/Message">站内邮件</a></li>
                                            <li><a href="/User/Chang/Pwd" title="修改密码">修改密码</a></li>
                                            <li><a href="/User/Info/UserBase" title="修改信息">修改信息</a></li>
                                            <li><a href="/User/User/Logout?nologurl=/Index">退出登录</a></li>
                                        </ul>
                                    </div>
                                </div>
                            }
                           
                        </div>
                    </div>
                </div>
            </div>
            <div class="modal-content" style="display: none;" id="helpdiv">
                <div class="modal-body">
                    <div>
                        1、普通会员只能发，不能改;<br />
                        2、聚合认证过的可以修改自己的帖子;<br />
                        3、版主（吧主）可以修改当前版面的帖子;<br />
                        4、管理员可以修改所有的帖子;<br />
                        5、为防灌水，回复帖子间隔时间为60秒，主题帖子发表间隔时间为5分钟，版主不受此限制;<br />
                        6、新注册会员120分钟内不能发帖;
                    </div>
                    <iframe id="cate_ifr" style="width: 100%; height: 400px; border: none;" src=""></iframe>
                </div>
            </div>
    </header>

    <div class="bar_top">
        <div class="container">
            <div class="row">
                <div class="col-lg-3 col-md-3 col-sm-3 col-xs-12 bar_logo"><a href="/Index">@(Call.SiteName)社区</a></div>
                <div class="col-lg-9 col-md-9 col-sm-9 col-xs-12 bar_top_r">
                    <ul class="list-unstyled">
                        <li><a href="/index">社区首页</a></li>
                        @Call.MVCLabel("{ZL.Label id=\"输出贴吧父级列表\" ShowNum=\"10\" /}")
                    </ul>
                </div>
            </div>
        </div>
    </div>
    <div id="centerdiv">
        @RenderSection("content")
        <div class="container index_footer">
            @MvcHtmlString.Create(Call.GetLabel("{$Copyright/}"))
        </div>
    </div>
    <div class="index_totop"><img src="" alt="顶部" />顶部</div>

@RenderSection("script")
<script>
    $().ready(function (e) {
        $(window).scroll(function () {
            if ($(window).scrollTop() >= 50) {
                $(".index_totop").animate({ right: '0' });
            }
            else {
                $(".index_totop").animate({ right: '-71px' });
            }
        });

        $(".index_totop").click(function () {
            $("body").animate({ scrollTop: 0 }, 1000, function () {
                $(".index_totop").animate({ right: '-71px' });
            });
        });
    })
$(function () {
    $("#souchkey").val("@Request["skey"]".replace(/\|/g, " "));
})
function SearchStr() {
    var key = $("#souchkey").val().replace(" ", "");
    if (key != "") {
        var searchstr = $("#souchkey").val().trim().replace(/ +/g, '|');
        location = "postsearch?skey=" + searchstr.trim();
    }
}
var diag = new ZL_Dialog();
diag.title = "社区帮助";
diag.width = 600;
diag.content = "helpdiv";
function ShowHelp() {
    diag.ShowModal();
}
</script>
</body>
</html>
